<?php
if ($d['gambar']!=''){


// Apabila ada gambar yang diupload
  if (!empty($lokasi_file)){
    if ($tipe_file != "image/jpeg" AND $tipe_file != "image/pjpeg" AND $tipe_file != "image/png"){
    echo "<script>window.alert('Upload Gagal, Pastikan File yang di Upload bertipe *.JPG');
        window.location=('../../media.php?module=banner')</script>";
    }
    else{
    UploadBanner($nama_file);
    mysql_query("INSERT INTO halamanstatis(judul,
                                    isi_halaman,
                                    tgl_posting,
                                    gambar) 
                            VALUES('$_POST[judul]',
                                   '$_POST[isi_halaman]',
                                   '$tgl_sekarang',
                                   '$nama_file')");
  header('location:../../media.php?module='.$module);
  }
  }
  else{
  
  
hapus coy!!!

?>

<p align="justify">
</p>
<img src=foto_banner/freshbook.jpg>
<img src=templates/standar/images/berita_sebelumnya.jpg>

pindah dulu
<table>
		<th colspan=5><center>Control Panel</center></th>
		<tr>
		  <td width=120 align=center><a href=media.php?module=user><img src=images/user.jpg border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=modul><img src=images/modul.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=berita><img src=images/berita.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=komentar><img src=images/komentar.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=download><img src=images/download.png border=none></a></td>
    </tr>
		<tr>
		  <th width=120><b>Manajemen User</b></th>
		  <th width=120><b>Manajemen Modul</b></center></th>
		  <th width=120><b>Berita</b></th>
		  <th width=120><b>Komentar</b></th>
		  <th width=120><b>Download</b></th>
		</tr>
		<tr>
		  <td width=120 align=center><a href=media.php?module=agenda><img src=images/agenda.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=banner><img src=images/banner.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=galerifoto><img src=images/galeri.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=poling><img src=images/poling.png border=none></a></td>
		  <td width=120 align=center><a href=media.php?module=hubungi><img src=images/hubungi.png border=none></a></td>
    </tr>
		<tr>
		  <th width=120><center><b>Agenda</b></th>
		  <th width=120><center><b>Banner</b></th>
		  <th width=120><center><b>Galeri Foto</b></th>
		  <th width=120><b>Poling</b></th>
		  <th width=120><b>Hubungi Kami</b></th>
		</tr>
    </table>
	
?module=berita
http://localhost/smkpasundan/adminweb/media.php?module=berita
http://localhost/smkpasundan/adminweb/media.php?module=agenda
http://localhost/smkpasundan/adminweb/media.php?module=modul